package cn.kane.visitor;

import java.util.Collection;

public class CollectionElement implements IElement {

	private Collection<IElement> value ;
	
	public CollectionElement(Collection<IElement> value){
		this.value = value ;
	}
	
	@Override
	public void accept(IVisitor visitor) {
		visitor.collectionVisitor(value);
	}

	@Override
	public Object getValue() {
		return this.value;
	}

}
